<script setup lang='ts'>
    import router from '@/router';
import { onMounted } from 'vue';
    import { useRoute,useRouter } from 'vue-router';
    onMounted(()=>{
      const route = useRoute()
      // alert(route.params.id)
      // alert(JSON.stringify(route.query))
    })
    const back=()=>{
      // const router = useRouter()
      router.go(-1)
    }
</script>
       
<template>
      <button @click="back">返回</button> 
</template>
       
<style scoped>
       
</style>